home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / The World of Computer Software.iso / tagr26d.zip / TAGR26D.PAS < prev   
Pascal/Delphi Source File  |  1993-01-24  |  52KB  |  1,258 lines

  1. {***************************************************************************}
  2. {* T.A.G. Bulletin Board System                                            *}
  3. {* Copyright (c) 1986-1993 by The T.A.G. Team                              *}
  4. {* All rights reserved.                                                    *}
  5. {*                                                                         *}
  6. {*                    -----------------------------------                  *}
  7. {*                    T.A.G. Version 2.6c Data Structures                  *}
  8. {*                    -----------------------------------                  *}
  9. {*                                                                         *}
  10. {* All we ask if you use these record structures is to give credit where   *}
  11. {* credit is due.                                                          *}
  12. {*                                                                         *}
  13. {* Additional structure information may be given out on an individual      *}
  14. {* basis depending on the situation.                                       *}
  15. {*                                                                         *}
  16. {***************************************************************************}
  17.  
  18. {$F-}
  19. {$O-}
  20.  
  21. UNIT TagR26d;
  22.  
  23. INTERFACE
  24.  
  25. CONST
  26.   {**************************************************************************}
  27.   {* The following values are used by the system for user fields            *}
  28.   {*   "ask"  values will be asked of the user the next time they logon if  *}
  29.   {*          the question is part of the new user logon                    *}
  30.   {*   "none" values are normally for optional fields where the user simply *}
  31.   {*          pressed <enter>                                               *}
  32.   {**************************************************************************}
  33.   User_String_Ask  = ' ';         {Ask for user string fields}
  34.   User_String_None = '';          {None for user string fields}
  35.  
  36.   User_Date_Ask  = $fe21;         {Ask for user date fields - 1/1/2027}
  37.   User_Date_None = $0021;         {None for user date fields - 1/1/0}
  38.  
  39.   User_Word_Ask  = 65535;         {Ask for user word fields}
  40.   User_Word_None = 65534;         {None for user word fields}
  41.  
  42.   User_Char_Ask  = '~';           {Ask for user character fields}
  43.   User_Char_None = ' ';           {None for user character fields}
  44.  
  45.   User_Phone_Ask  = ' ';          {Ask for user phone fields}
  46.   User_Phone_None = '';           {None for user phone fields}
  47.  
  48.  
  49. TYPE
  50.   DefaultYesNoType = (            {Default/yes/no type}
  51.     dyn_default,                  {Default}
  52.     dyn_yes,                      {Yes}
  53.     dyn_no                        {No}
  54.     );                            {1 byte}
  55.  
  56.   ArFlagType = '@'..'Z';          {AR flags}
  57.  
  58.   ArFlagset = SET OF ArFlagType;  {Set of AR flags}
  59.  
  60.   FlagRec = (                     {User special flags}
  61.     AutoPrivDel,                  {A = Force user to delete private mail}
  62.     NoPostCall,                   {B = No post call ratio}
  63.     ForceULScan,                  {C = Force this user to automatically scan when uploading}
  64.     Ranon,                        {D = Restrict from posting anonymous}
  65.     RbbsList,                     {E = Restrict from adding to other BBS list}
  66.     Rchat,                        {F = Restrict from chatting}
  67.     NoDLlimit,                    {G = No download ratio limit}
  68.     RpubMsg,                      {H = Restrict from posting public mail}
  69.     RprivMsg,                     {I = Restrict from sending private mail}
  70.     Rvoting,                      {J = Restrict from voting}
  71.     OneCall,                      {K = One call per day allowed}
  72.     PubNotVal,                    {L = Public posts are not validated}
  73.     ProtDel,                      {M = Protect from deletion}
  74.     NoFilePts,                    {N = No file point checks}
  75.     RfileVal,                     {O = Credit from upload on validation}
  76.     Pause,                        {P = [PAUSE] active}
  77.     Ansi,                         {Q = ANSI graphics active}
  78.     Color,                        {R = Color active if ANSI present}
  79.     OneKey,                       {S = Onekey input used instead of line input}
  80.     Alert,                        {T = Alert active from user's next call}
  81.     FlagRecUnused,                {U = Reserved}
  82.     MboxClosed,                   {V = Mail box closed to all but SysOp's}
  83.     Tabs,                         {W = VT100 tabs are used to optimize display}
  84.     ClsChar                       {X = Clear screen characters used}
  85.     );                            {3 bytes used for 24 flags in set}
  86.  
  87.   FlagSet = SET OF FlagRec;       {Set of special flags}
  88.  
  89.   UlRecFlagType = (               {File section flags}
  90.     IsCdRom,                      {Section is on a CD-ROM (read only device)}
  91.     uuUlRecFlag1,                 {Reserved}
  92.     uuUlRecFlag2,                 {Reserved}
  93.     uuUlRecFlag3,                 {Reserved}
  94.     uuUlRecFlag4,                 {Reserved}
  95.     uuUlRecFlag5,                 {Reserved}
  96.     uuUlRecFlag6,                 {Reserved}
  97.     uuUlRecFlag7                  {Reserved}
  98.     );                            {1 byte}
  99.  
  100.   UlRecFlagSet =                  {Set of file section flags}
  101.     SET OF UlRecFlagType;         
  102.  
  103.   ConfigFlagRec = (               {User configuration flags}
  104.     UseCustomMenus,               {A = Allow custom ANSI menus}
  105.     ClsMsgRead,                   {B = Clear screen between reading messages}
  106.     DoNotDisturbUser,             {C = Do not disturb user (multi-user only)}
  107.     uuCFFlag21,                   {D = Reserved}
  108.     uuCFFlag20,                   {E = Reserved}
  109.     uuCFFlag19,                   {F = Reserved}
  110.     uuCFFlag18,                   {G = Reserved}
  111.     uuCFFlag17,                   {H = Reserved}
  112.     uuCFFlag16,                   {I = Reserved}
  113.     uuCFFlag15,                   {J = Reserved}
  114.     uuCFFlag14,                   {K = Reserved}
  115.     uuCFFlag13,                   {L = Reserved}
  116.     uuCFFlag12,                   {M = Reserved}
  117.     uuCFFlag11,                   {N = Reserved}
  118.     uuCFFlag10,                   {O = Reserved}
  119.     uuCFFlag9,                    {P = Reserved}
  120.     uuCFFlag8,                    {Q = Reserved}
  121.     uuCFFlag7,                    {R = Reserved}
  122.     uuCFFlag6,                    {S = Reserved}
  123.     uuCFFlag5,                    {T = Reserved}
  124.     uuCFFlag4,                    {U = Reserved}
  125.     uuCFFlag3,                    {V = Reserved}
  126.     uuCFFlag2,                    {W = Reserved}
  127.     uuCFFlag1                     {X = Reserved}
  128.     );                            {3 bytes used for 24 flags in set}
  129.  
  130.   ConfigFlagSet =                 {Set of configuration flags}
  131.     SET OF ConfigFlagRec; 
  132.  
  133.   {**********************************************************************}
  134.   {* ColorRec = Array of B&W / Color  Color Bytes                       *}
  135.   {**********************************************************************}
  136.   ColorRec = ARRAY[FALSE..TRUE,   {False = B&W, True = Color}
  137.                    0..9]          {0..9 = Color number}
  138.              OF BYTE;
  139.  
  140.   SmalRec = RECORD                {User name index - NAMES.LST}
  141.     Name : STRING[36];            {User name}
  142.  
  143.     Number : INTEGER;             {User number}
  144.   END;
  145.  
  146.   UserRec = RECORD                {User log - USER.LST}
  147.     Uname,                        {User name}
  148.     Rname : STRING[36];           {Real name}
  149.  
  150.     ADDR,                         {Address}
  151.     ComType,                      {Computer type}
  152.     CityState,                    {City/State}
  153.     Snote : STRING[30];           {SysOp note}
  154.  
  155.     LastDate,                     {Last date on - Semi-MS-DOS 1900 based format}
  156.     LastTime : WORD;              {Last time on - MS-DOS format}
  157.  
  158.     PW : STRING[16];              {Password}
  159.  
  160.     Phone : STRING[12];           {Phone number 1}
  161.  
  162.     Zcode : STRING[10];           {Zip code}
  163.  
  164.     Phone2 : STRING[12];          {Phone number 2}
  165.  
  166.     ExtraStr1,                    {Extra string 1}
  167.     ExtraStr2,                    {Extra string 2}
  168.     ExtraStr3 : STRING[40];       {Extra string 3}
  169.  
  170.     ExtraDate1,                   {Extra date 1 - Semi-MS-DOS 1900 based format}
  171.     ExtraDate2 : WORD;            {Extra date 2 - Semi-MS-DOS 1900 based format}
  172.  
  173.     ExtraWord1,                   {Extra word 1}
  174.     ExtraWord2,                   {Extra word 2}
  175.     ExtraWord3,                   {Extra word 3}
  176.     ExtraWord4 : WORD;            {Extra word 4}
  177.  
  178.     ExtraChar1,                   {Extra character 1}
  179.     ExtraChar2,                   {Extra character 2}
  180.     ExtraChar3,                   {Extra character 3}
  181.     ExtraChar4 : CHAR;            {Extra character 4}
  182.  
  183.     ExtraPhone : STRING[12];      {Extra phone}
  184.  
  185.     uureserved                    {Reserved}
  186.       : ARRAY[1..3] OF BYTE;
  187.  
  188.     {**********************************************************************}
  189.     {* Vote  = An array of Voting Answers, One for each question          *}
  190.     {**********************************************************************}
  191.     Vote : ARRAY[1..20] OF BYTE;  {Voting}
  192.  
  193.     {**********************************************************************}
  194.     {* Call spread for last 15 calls - Number  of days between each call: *}
  195.     {* 0      = Called the same day                                       *}
  196.     {* 1..253 = X number of days between                                  *}
  197.     {* 254    = 254 or more days between                                  *}
  198.     {* 255    = Element not used yet                                      *}
  199.     {**********************************************************************}
  200.     CallSpr                       {Call spread}
  201.        : ARRAY[1..15] OF BYTE;
  202.  
  203.     Ttimeon,                      {Total time on system in minutes}
  204.     UlK,                          {UL K-Bytes}
  205.     Dlk : REAL;                   {DL K-Bytes}
  206.  
  207.     {**********************************************************************}
  208.     {* UserNum = The User number                                          *}
  209.     {*           0  -----------------------------> Deleted                *}
  210.     {*           Same as Record Number ----------> Normal                 *}
  211.     {*           Different from Record Number ---> Locked Out             *}
  212.     {**********************************************************************}
  213.     UserNum : INTEGER;            {User number}
  214.  
  215.     PrivPost,                     {Private posts}
  216.     PubPost,                      {Public posts}
  217.     FeedBack,                     {Feedback sent to SysOp}
  218.     NumCalls,                     {Total number of calls to system}
  219.     NumUL,                        {Number of uploads}
  220.     NumDL : WORD;                 {Number of downloads}
  221.  
  222.     {**********************************************************************}
  223.     {* Fmail = Status of Mail Forwarding                                  *}
  224.     {*           0  --------> Forwarding inactive                         *}
  225.     {*           Other  ----> User Number to forward mail to              *}
  226.     {**********************************************************************}
  227.     Fmail : INTEGER;              {Forward mail to which user number}
  228.  
  229.     Hbaud,                        {Highest baud rate user supports}
  230.     TimeToday,                    {Minutes on system date of last call}
  231.     Credit,                       {Credit for mail in cents}
  232.     Debit,                        {Debit for mail in cents}
  233.     Points,                       {File points}
  234.     TimeBank,                     {Minutes in time bank}
  235.     Bday,                         {Birthdate of user - Semi-MS-DOS format}
  236.     LastChange : WORD;            {Reserved}
  237.  
  238.     StrtMenu,                     {Reserved}
  239.     SL,                           {Security level - SL}
  240.     DSL,                          {Download security level - DSL}
  241.     Hlvl,                         {Help level}
  242.     Colms,                        {Number of screen columns}
  243.     Lines,                        {Number of screen lines}
  244.     Callstoday,                   {Number of calls to system today}
  245.     Illegal : BYTE;               {Illegal logon attempts}
  246.  
  247.     Gender : CHAR;                {User gender M/F/' '=not specified}
  248.  
  249.     uulMsgBase,                   {Last message base}
  250.     uuLdlBase,                    {Last file section}
  251.     Cls : BYTE;                   {Reserved}
  252.  
  253.     FullEdit : defaultyesnotype;  {Full screen editor status}
  254.  
  255.     Ar : ArFlagset;               {AR flag set}
  256.  
  257.     Flags : FlagSet;              {Special flag set}
  258.  
  259.     FirstOn,                      {Date first on - Semi-MS-DOS format}
  260.     Expires : WORD;               {Date expires - Semi-MS-DOS format}
  261.  
  262.     UserRecUnused :               {Reserved}
  263.       ARRAY[1..29] OF BYTE;       
  264.  
  265.     Colors : ColorRec;            {User colors}
  266.  
  267.     TBdeposit,                    {Time deposited in bank last call}
  268.     TBwithdraw : BYTE;            {Time withdraw from bank last call}
  269.  
  270.     AdjTime : INTEGER;            {Adjusted time date of last call}
  271.  
  272.     ConfigFlags : ConfigFlagSet;  {Configuration Flags}
  273.  
  274.     lMbase,                       {Last message section}
  275.     lFbase : WORD;                {Last file section}
  276.  
  277.     Unused : ARRAY[1..5] OF BYTE; {Reserved}
  278.   END;
  279.  
  280.   SmallMessageRec = RECORD        {Short messages - SHORTMSG.DAT}
  281.     Msg : STRING[160];            {Message text}
  282.  
  283.     Destin : INTEGER;             {User number of who message is to}
  284.   END;
  285.  
  286.   Vdatar = RECORD                 {Voting questions - VOTING.DAT}
  287.     Question : STRING[74];        {Question}
  288.  
  289.     NumA : WORD;                  {Number of answers in below array}
  290.  
  291.     Answ : ARRAY[0..9] OF RECORD  {Array of answer data}
  292.       Ans : STRING[40];           {Answer}
  293.  
  294.       NumRes : WORD;              {Number of users who choose this response}
  295.     END;
  296.   END;
  297.  
  298.  
  299.   UlRec = RECORD                  {File section - FBOARDS.DAT}
  300.     Name : STRING[39];            {Section name 26 Real Len, Rest Colors}
  301.  
  302.     Filename : STRING[8];         {Listing filename (does not include ".DIR")}
  303.                                   {If UL and DL paths are different,}
  304.                                   {filename for upload section is "FILES"}
  305.                                   {If first character is "@" then *.DIR file}
  306.                                   {is found in main data files directory}
  307.  
  308.     DlPathname,                   {Download pathname}
  309.     UlPathName : STRING[30];      {Upload pathname}
  310.  
  311.     Password : STRING[15];        {Password required}
  312.  
  313.     Flags : UlRecFlagSet;         {File section flags}
  314.  
  315.     DSL,                          {DSL required}
  316.     SeeNames : BYTE;              {DSL required to see uploader names}
  317.  
  318.     ArLvl : ArFlagType;           {AR flag required}
  319.  
  320.     NoRatioGroupNum : BYTE;       {bit  0   : Ratio disabled}
  321.                                   {bits 1-7 : Group number  }
  322.   END;
  323.  
  324.   Filerec = (                     {File flags}
  325.     NotValidated,                 {File is not validated}
  326.     OwnerRestricted,              {Uploader did not receive credit on upload}
  327.     uuF6,                         {Reserved}
  328.     uuF5,                         {Reserved}
  329.     uuF4,                         {Reserved}
  330.     uuF3,                         {Reserved}
  331.     uuF2,                         {Reserved}
  332.     uuF1                          {Reserved}
  333.     );                            {1 byte used for 8 flags in set}
  334.  
  335.   FlagRecSet = SET OF Filerec;    {Set of file flags}
  336.  
  337.   UlfRec = RECORD                 {File listing - *.DIR}
  338.     Filename : STRING[12];        {File name}
  339.  
  340.     Description : STRING[78];     {Description}
  341.  
  342.     Nacc : WORD;                  {Number of times file downloaded}
  343.  
  344.     Unused : BYTE;                {Reserved}
  345.  
  346.     Blocks : WORD;                {Number of 128 byte blocks in file}
  347.  
  348.     Owner : STRING[36];           {Uploader of file}
  349.  
  350.     Date : STRING[8];             {Date file uploaded}
  351.  
  352.     DateN : WORD;                 {Date uploaded in days since Jan 1, 1985}
  353.  
  354.     Flag : FlagRecSet;            {File status}
  355.  
  356.     Points : BYTE;                {File points}
  357.   END;
  358.  
  359.   Range = ARRAY[0..255] OF WORD;  {Range of values for all security levels}
  360.  
  361.  
  362. CONST
  363.   numshellfiles = 13;            {Number of defined internal shell files}
  364.   maxshelldesclength = 29;        {Maximum shell file description length}
  365.  
  366.  
  367.   shellfiledesc :                 {Array of shell file descriptions}
  368.     ARRAY[1..numshellfiles] OF
  369.     STRING[maxshelldesclength] = (
  370.     'Front end mailer',              {mailer.bat / binkley.bat}
  371.     'External editor',               {extedit.bat}
  372.     'External SysOp function key',   {extern#.bat}
  373.     'Archive file testing',          {filetest.bat}
  374.     'Logon',                         {logon.bat}
  375.     'New logon',                     {newlogon.bat}
  376.     'Post download',                 {postdl.bat}
  377.     'Post upload',                   {postul.bat}
  378.     'Wait screen special function',  {special.bat}
  379.     'TAGMail external reader',       {tagmail.bat}
  380.     'Wait screen terminal function', {term.bat}
  381.     'Welcome',                       {welcome.bat}
  382.     'Logoff'                         {logoff.bat}
  383.     );
  384.  
  385.  
  386. TYPE
  387.   shellfileflagtype = (           {Shell file flags}
  388.     shellshowcall,                {Display shell message on screen}
  389.     shelllogcall                  {Log shell message}
  390.   );                              
  391.  
  392.   shellfileflagset =              {Shell file flag set}
  393.     SET OF shellfileflagtype;     
  394.  
  395.   shellfilerec = RECORD
  396.     UseSwap : defaultyesnotype;   {Swap shell setting}
  397.  
  398.     Flags : shellfileflagset;     {Shell file flags}
  399.   END;
  400.  
  401.   shellfilelist =                 {Array of shell files}
  402.     ARRAY[1..numshellfiles] OF
  403.     shellfilerec;                 
  404.  
  405.  
  406. CONST
  407.   numnewuserquests = 29;          {Number of current new user questions}
  408.  
  409.   maxnewuserdesclength = 15;      {Maximum new user description length}
  410.  
  411.   newuserquestdesc :              {Array of new user question descriptions}
  412.     ARRAY[0..numnewuserquests] OF
  413.     STRING[maxnewuserdesclength] = (
  414.     'Inactive',
  415.     'Real Name',
  416.     'Address',
  417.     'City State',
  418.     'Zip Code',
  419.     'Phone Number 1',
  420.     'Phone Number 2',
  421.     'Computer Type',
  422.     'Gender',
  423.     'Birthday',
  424.     'Maximum Baud',
  425.     'Extra String 1',
  426.     'Extra String 2',
  427.     'Extra String 3',
  428.     'Extra Date 1',
  429.     'Extra Date 2',
  430.     'Extra Number 1',
  431.     'Extra Number 2',
  432.     'Extra Number 3',
  433.     'Extra Number 4',
  434.     'Extra Char 1',
  435.     'Extra Char 2',
  436.     'Extra Char 3',
  437.     'Extra Char 4',
  438.     'Extra Phone',
  439.     'Columns/Lines*',
  440.     'Pause*',
  441.     'ANSI/Color*',
  442.     'Tabs*',
  443.     'Password*'
  444.     );
  445.  
  446.  
  447. TYPE
  448.   newuserquestrec = RECORD
  449.     itemnum : BYTE;               {Item number to ask or 0=inactive}
  450.  
  451.     required : BOOLEAN;           {Required/optional}
  452.   END;
  453.  
  454.   newuserquestlist =              {Array of new user questions}
  455.     ARRAY[1..numnewuserquests] OF
  456.     newuserquestrec;
  457.  
  458.   {*************************************************************************}
  459.   {* Provide for full 4D awareness (And point support)                     *}
  460.   {*************************************************************************}
  461.   AddressType = RECORD            {Fidonet Style Address (24 Bytes)}
  462.     Zone,                         {Zone, 1   = N. America}
  463.     Net,                          {Net,  120 = SE Michigan}
  464.     Node,                         {Node, 116 = CRIMP BBS}
  465.     Point : WORD;                 {Point, 99% of the time = 0}
  466.  
  467.     Domain : STRING[15];          {As in FIDONET.ORG}
  468.   END;
  469.  
  470.   SystatRec = RECORD              {System status - STATUS.DAT}
  471.     AltPath,                      {Alternate file path}
  472.     DictPath : STRING[40];        {Dictionary path}
  473.  
  474.     DefReadMsgMenu : BYTE;        {Wait screen read message menu}
  475.  
  476.     dynamicmsg,                   {Dynamic message numbering active}
  477.     dynamicfile,                  {Dynamic file numbering active}
  478.     waitscreendisable,            {Wait screen activity disable}
  479.     requiredvoting : BOOLEAN;     {Require voting when user logs on}
  480.  
  481.     automsglines,                 {Auto message number of lines}
  482.     uunewuserexpdays,             {Reserved}
  483.     addwordsl : BYTE;             {Add word to dictionary SL}
  484.  
  485.     expvalkey : CHAR;             {User expired validation key (#13=None)}
  486.  
  487.     expwarning,                   {Number of days to give warning before expires}
  488.     modifymailflags,              {SL when allowed to modify mail flags}
  489.     netmailfilerequest,           {SL for net mail file requests}
  490.     netmailfileattach : BYTE;     {SL for net mail file attach}
  491.  
  492.     ModemDebug,                   {Modem debug information written to log}
  493.     UseXMS,                       {Use XMS memory for swap shell}
  494.     ShowFilesOpen,                {Show Files Open on Top Screen}
  495.     LocalSysopWindow,             {SysOp window when on locally}
  496.     AllowSuperFast,               {Allow SHIFT password override}
  497.     WaitSend,                     {FOSSIL buffer inactive}
  498.     OverlayEMS,                   {Attempt EMS of overlays}
  499.     EMSOverXMS,                   {Use EMS over XMS memory for swap}
  500.     DirectScreen,                 {Direct screen writes}
  501.     UseEMS,                       {Use EMS memory for swap shell}
  502.     useswap,                      {Use swap shell}
  503.     UseFossil,                    {Use FOSSIL driver}
  504.     SnowCheck : BOOLEAN;          {Snow checking active}
  505.  
  506.     BrowseDSL : BYTE;             {DSL to have U/D commands on File Browse Menu}
  507.  
  508.     uusystatrec1 :                {Reserved}
  509.       ARRAY[1..9] OF BYTE;        
  510.  
  511.     TempDlPath : STRING[40];      {Temp File Download Path}
  512.  
  513.     MinKpost,                     {Minimum K-Bytes to post}
  514.     MinKul : WORD;                {Minimum K-Bytes to upload}
  515.  
  516.     AutoChatBufOpen : BOOLEAN;    {Auto chat buffer open}
  517.  
  518.     nettype : STRING[20];         {Multi-user network type}
  519.  
  520.     uusystatrec2 :                {Reserved}
  521.       ARRAY[1..15] OF BYTE;       
  522.  
  523.     LogonPassword,                {SL when SysOp PW #1 needed to logon}
  524.     ReadTextMsg : BYTE;           {SL when allowed to use /READ command}
  525.  
  526.     AlertChatOnly,                {Alert active only when chat on}
  527.     genericinfo,                  {Generic mode active}
  528.     LogonPhone : BOOLEAN;         {Logon requires phone number}
  529.  
  530.     DefMsgGroup : STRING[20];     {Default msg section group mask}
  531.     DefFileGroup : STRING[20];    {Default file section group mask}
  532.  
  533.     uusystatrec3 :
  534.       ARRAY[1..13] OF BYTE;       {Reserved}
  535.  
  536.     LastCaller : STRING[42];      {Name and number of last caller}
  537.  
  538.     MenuFastKeys : STRING[20];    {Menu fast keys (e.g. "/")}
  539.  
  540.     BoardPW : STRING[16];         {New user password (Null=None)}
  541.  
  542.     BoardPhone : STRING[12];      {Board phone number}
  543.  
  544.     SysopColor,                   {Chat SysOp color}
  545.     UserColor : BYTE;             {Chat user color}
  546.  
  547.     PostCallFlag : ArFlagType;    {Post call ratio AR flag}
  548.  
  549.     NoPostCallChk,                {SL when post call ratio ignored}
  550.     ReinitTime,                   {Minutes to re-init modem when no calls}
  551.     StartMenu : BYTE;             {Unused}
  552.  
  553.     UseAutoMsg,                   {Display auto-message during logon}
  554.     LogonOffHook : BOOLEAN;       {Take phone off-hook on local logon}
  555.  
  556.     NoPointChk : BYTE;            {DSL when file points ignored}
  557.  
  558.     LastDate : STRING[8];         {Date last user logged on}
  559.  
  560.     Address : AddressType;        {Zone/Net/Node/Point/Domain}
  561.  
  562.     UserOn11x : Boolean;          {Use USERON.BBS version 1.1x}
  563.  
  564.     shellfile : shellfilelist;    {Shell file information}
  565.  
  566.     uushellfile :                 {Reserved for shell files}
  567.       ARRAY[1..10] OF BYTE;       
  568.  
  569.     newuserquest :                {New user question information}
  570.       newuserquestlist;           
  571.  
  572.     uunewuserquest :              {Reserved}
  573.       ARRAY[1..270] OF BYTE;      
  574.  
  575.     ActiveModemRecNum : BYTE;     {Active Modem Record Number}
  576.  
  577.     MultiUserPath : STRING[40];   {Multi-user path}
  578.  
  579.     defusereditlist : BYTE;       {Default user editor list mode}
  580.                                   {0=short, 1=normal, 2=extended, 3=info}
  581.  
  582.     uusystatrec5 :                {Reserved}
  583.        ARRAY[1..10] OF BYTE;      
  584.  
  585.     GfilesPath : STRING[40];      {Main data files path}
  586.  
  587.     StoreBadLogon : BOOLEAN;      {Store bad logon info in SysOp log}
  588.  
  589.     MaxBdNum,                     {Maximum number of batch DL files}
  590.     MaxBuNum : BYTE;              {Maximum number of batch UL files}
  591.  
  592.     BoardName : STRING[48];       {Board name}
  593.  
  594.     SysopMenuSL : BYTE;           {SL required for SysOp Control-Q menu}
  595.  
  596.     SysopMenuAR : ArFlagType;     {AR flag required from Control-Q menu}
  597.  
  598.     SysopName : STRING[36];       {SysOp name}
  599.  
  600.     SwapPath : STRING[40];        {Swap shell path}
  601.  
  602.     ChatPW : STRING[16];          {Chat password}
  603.  
  604.     LastTAGVersion : STRING[20];  {Last version of TAG to run}
  605.  
  606.     nodelistpath : STRING[40];    {Nodelist directory}
  607.  
  608.     uusystatrec6 :                {Reserved}
  609.       ARRAY[1..2308] OF BYTE;     
  610.  
  611.     SysopPW :                     {Array of SysOp passwords}
  612.       ARRAY[1..3] OF STRING[16];  
  613.  
  614.     uusystatrec7 :                {Reserved}
  615.       ARRAY[1..120] OF BYTE;      
  616.  
  617.     CallerNum,                    {Total number of calls to system}
  618.     UlKtoday,                     {K-Bytes uploaded today}
  619.     DlkToday,                     {K-Bytes downloaded today}
  620.     uur1,                         {Reserved}
  621.     uur2,                         {Reserved}
  622.     uur3 : REAL;                  {Reserved}
  623.  
  624.     Users,                        {Number of active users}
  625.     ActiveToday,                  {Minutes active today}
  626.     Callstoday,                   {Calls today}
  627.     MsgPostToday,                 {Public messages posted today}
  628.     EmailToday,                   {Private messages posted today}
  629.     FbackToday,                   {Feedback sent to SysOp today}
  630.     UlToday,                      {Number of uploads today}
  631.     uuw1,                         {Reserved}
  632.     uuw2,                         {Reserved}
  633.     uuw3,                         {Reserved}
  634.     MaxUsers,                     {Maximum users allowed to be active}
  635.     ErrorsToday,                  {Number of errors today}
  636.     NusersToday,                  {Number of new users today}
  637.     DlToday : WORD;               {Number of downloads today}
  638.  
  639.     NewUserMsgTo,                 {User number new user message sent to}
  640.     uui1,                         {Reserved}
  641.     SysopMailTo,                  {User number mail to "SYSOP" is sent to}
  642.     GuestUser,                    {Guest user number (0=None)}
  643.     FailedLogonMsgTo : INTEGER;   {Failed logon message sent to}
  644.  
  645.     uuw5,                         {Reserved}
  646.     UsageLogDays,                 {Number of days to keep USAGE.LOG}
  647.     WaitMailUser : INTEGER;       {Mail waiting on wait screen (0=none)}
  648.  
  649.     UEditJumpSL : BYTE;           {SL required for SysOp Control-U menu}
  650.     UEditJumpAR : ArFlagType;     {AR flag required from Control-U menu}
  651.  
  652.     NoviceDisplay : BYTE;         {Number of calls to display novice msg}
  653.  
  654.     NodeNumber : BYTE;            {Multi-user node number}
  655.  
  656.     UEditJumpPassword,            {Use System pswd for Quick User Edit}
  657.     ScanOnUploads : BOOLEAN;      {System permits forced scan on uploads}
  658.  
  659.     MaxTimeInBank : WORD;         {Maximum minutes in time bank}
  660.  
  661.     ShowGifRes,                   {Show GIF resolution}
  662.     CheckUploadSpace,             {Show upload drive space}
  663.     SystemSecur : BOOLEAN;        {Full keyboard security active}
  664.  
  665.     MultiUser : BOOLEAN;          {Board in multi-user mode}
  666.  
  667.     TBmaxDeposit,                 {Maximum daily time bank deposit}
  668.     TBmaxWithdraw,                {Maximum daily time bank withdraw}
  669.     SysopLvl,                     {SL for SysOp}
  670.     CoSysopLvl,                   {SL for CoSysOp}
  671.     uub1,                         {Reserved}
  672.     AddBbsLvl,                    {SL for adding boards to bbs listing}
  673.     EmailLvl,                     {SL for sending normal private mail}
  674.     uub2,                         {Reserved}
  675.     uub3,                         {Reserved}
  676.     SeeUnvalLvl,                  {DSL for seeing unvalidated files}
  677.     DlCoSysopLvl,                 {DSL for Download CoSysOp}
  678.     NoRatioChk,                   {DSL for no ratio}
  679.     ReadAnon,                     {SL to know see anonymous real name     }
  680.     ReplyAnon,                    {SL to reply to anonymous private mail  }
  681.     PublicAnonAny,                {SL to post anonymous on any public base}
  682.     PrivateAnonAny,               {SL to send private anonymous mail      }
  683.     MaxPublicCall,                {Maximum public posts per call}
  684.     MaxPrivCall,                  {Maximum private messages per call}
  685.     MaxFbackCall,                 {Maximum feedback to SysOp per call}
  686.     uub4,                         {Reserved}
  687.     SeePasswords,                 {SL to see user passwords remotely}
  688.     uub5,                         {Reserved}
  689.     uub6,                         {Reserved}
  690.     ComPort,                      {Communications port}
  691.     TimeOut,                      {Minutes for inactivity time-out}
  692.     TimeOutBell,                  {Minutes for inactivity bell}
  693.     Backlogdays,                  {Number of days to keep SYSOP.LOG's}
  694.     PrivilegeSL,                  {Privilege SL}
  695.     PrivilegeDSL,                 {Privilege DSL}
  696.     CDmask,                       {Carrier detect mask}
  697.     MaxLogonTries,                {Maximum logon attempts per call}
  698.     uub7,                         {Reserved}
  699.     uub8,                         {Reserved}
  700.     UlTimePercent,                {UL time percent refund}
  701.     MaxChats,                     {Maximum chat pages per call}
  702.     uub9,                         {Reserved}
  703.     TagLineSL : BYTE;             {Reserved}
  704.  
  705.     ClosedSystem,                 {System closed}
  706.     TitlePause,                   {Allow [PAUSE] on welcome screen}
  707.     LogonBulletin,                {Logon to the bulletin section}
  708.     BlankWait,                    {Blank the wait screen if no activity}
  709.     Handles,                      {Allow handles}
  710.     AutoANSIDetect,               {Logon auto-detect ANSI}
  711.     SecureSystem,                 {Keyboard security active}
  712.     TimePerDay,                   {Time limits represent time per day}
  713.     Mailer,                       {External mailer active}
  714.     SysopFemale,                  {SysOp is female}
  715.     scantosysoplog : BOOLEAN;     {File scans are saved in SysOp log}
  716.  
  717.     TimeAllowed,                  {SL array of time per call/per day}
  718.     UlDlNumRatio,                 {DSL array of number of file UL ratios}
  719.     UlDlKratio,                   {DSL array of K-Byte UL ratios}
  720.     CallsAllowed,                 {SL array of calls allowed per day}
  721.     PostCall : Range;             {SL array of posts per 1/10 call}
  722.  
  723.     uusystatrec8 :
  724.       ARRAY[1..8] OF BYTE;        {Reserved}
  725.   END;
  726.  
  727.   MenuFlagType = (                {Menu flag type}
  728.     SLs,                          {SL security check - When off DSL security check}
  729.     OrCheck,                      {SL or AR - When off SL and AR}
  730.     Flag1,                        {Time/Help display (menu) or Hidden status (command)}
  731.     Flag2,                        {Board display override (menu) or link to next (command)}
  732.     Flag3                         {Menu name prompt (menu) or unused (command)}
  733.     ); {1 byte}
  734.  
  735.   MenuFlagSet =                   {Set of menu flags}
  736.     SET OF MenuFlagType;          
  737.  
  738.   MenuRec = RECORD                {Menus - MENUS.LST}
  739.     LongD : STRING[60];           {Menu desc (menu) or Long command desc (cmd)}
  740.  
  741.     GSL : BYTE;                   {General security level - Depends on SLS }
  742.  
  743.     ArLvl : ArFlagType;           {AR flag}
  744.  
  745.     Flags : MenuFlagSet;          {Menu flags}
  746.  
  747.     CASE Menu : BOOLEAN OF        {Menu or command - Variant section}
  748.       TRUE :
  749.         (MenuNum : BYTE;          {Menu number}
  750.  
  751.          mPrompt : STRING[20];    {Menu prompt unless "flag3" active}
  752.  
  753.          Password : STRING[15];   {Menu password}
  754.  
  755.          FallBack : BYTE;         {Fallback menu number}
  756.  
  757.          HelpFile : STRING[7];    {Help file ID name}
  758.  
  759.          StartHelp : BYTE;        {Starting help level 0=default}
  760.  
  761.          Location : BYTE);        {Menu location (0=Main, 1=File, 2=ReadMessage)}
  762.       FALSE :
  763.         (Pkey : BYTE;             {Command PKey}
  764.  
  765.          Pdata : STRING[20];      {Command PData}
  766.  
  767.          Shortd : STRING[15];     {Command short description}
  768.  
  769.          CmdKey : STRING[12]);    {Command execution key}
  770.    END; {case/record}
  771.  
  772.   MacroRec = RECORD               {Macro list - MACROS.LST}
  773.     UserN : INTEGER;              {User number of macro owner}
  774.  
  775.     Key :                         {Txt for each of the macros}
  776.       ARRAY[1..4] OF STRING[160]; 
  777.   END;
  778.  
  779.   SprotocolRec = RECORD           {Single protocols - SPROT.DAT}
  780.     Key : STRING[12];             {Execution key}
  781.  
  782.     Desc : STRING[60];            {Description}
  783.  
  784.     MinBaud,                      {Minimum baud rate to use}
  785.     MaxBaud : WORD;               {Maximum baud rate to use}
  786.  
  787.     DSL : BYTE;                   {DSL required}
  788.  
  789.     TempLog,                      {Temp log path and name}
  790.     UlLog,                        {UL log path and name}
  791.     DlLog : STRING[52];           {DL log path and name}
  792.  
  793.     UlString,                     {UL string for DOS call}
  794.     DlString : STRING[70];        {DL string for DOS call}
  795.  
  796.     GoodCode : BOOLEAN;           {Result codes mean good transfer}
  797.  
  798.     DlCode,                       {DL error level result codes}
  799.     ULcode : ARRAY[1..6] OF BYTE; {DL error level result codes}
  800.   END;
  801.  
  802.   BprotocolRec = RECORD           {Batch protocols - BPROT.DAT}
  803.     Key : STRING[12];             {Execution key}
  804.  
  805.     Desc : STRING[60];            {Description}
  806.  
  807.     MinBaud,                      {Minimum baud rate to use}
  808.     MaxBaud : WORD;               {Maximum baud rate to use}
  809.  
  810.     DSL : BYTE;                   {DSL required}
  811.  
  812.     UlString,                     {UL string for DOS call}
  813.     DlString : STRING[70];        {DL string for DOS call}
  814.  
  815.     UlList,                       {UL file list file path and name}
  816.     DlList,                       {DL file list file path and name}
  817.     TempLog,                      {Temp log path and name}
  818.     UlLog,                        {UL log path and name}
  819.     DlLog : STRING[52];           {DL log path and name}
  820.  
  821.     MaxCmdLen,                    {Maximum command line length}
  822.     PosFn,                        {Position of filename in log}
  823.     PosStatus : BYTE;             {Position of status in log}
  824.  
  825.     GoodCode : BOOLEAN;           {Result codes mean good transfer}
  826.  
  827.     DlCode,                       {DL status result codes}
  828.     ULcode :                      {UL status result codes}
  829.       ARRAY[1..6] OF STRING[10];  
  830.   END;
  831.  
  832.   ValidationRec = RECORD          {Validation information - VALIDATE.DAT}
  833.     Key : CHAR;                   {Execution key}
  834.  
  835.     Desc : STRING[160];           {Descrip sent to user after validation}
  836.                                   {76 max real length - Rest for color}
  837.  
  838.     SL,                           {SL to set on validation}
  839.     DSL : BYTE;                   {DSL to set on validation}
  840.  
  841.     Credit,                       {Credit in cents to set on validation}
  842.     Points,                       {File points to set on validation}
  843.     TimeBank : WORD;              {Time bank minutes to set on validation}
  844.  
  845.     Ar : ArFlagset;               {AR flags to set on validation}
  846.  
  847.     Flags : FlagSet;              {Special flags to set on validation}
  848.  
  849.     UnusedWord : WORD;            {Reserved}
  850.   END;
  851.  
  852.   EventType      = (              {Event flags}
  853.     UnknownEvent,                 {1  Unknown}
  854.     EventIsExternal,              {2  External/Internal}
  855.     EventIsActive,                {3  Active/InActive}
  856.     EventIsShell,                 {4  Shell/Error}
  857.     EventIsMonthly,               {5  Monthly/Daily}
  858.     EventIsPermission,            {6  Permission/Restriction}
  859.     EventIsChat,                  {7  Chat Event}
  860.     EventIsSoft,                  {8  Soft/Hard}
  861.  
  862.     BaudIsActive,                 {9  Baud Rate Flag}
  863.     SLisActive,                   {10 SL Flag}
  864.     DSLisActive,                  {11 DSL Flag}
  865.     ARisActive,                   {12 ARflag required}
  866.     InRatioIsActive,              {13 InRatioFlag}
  867.     TimeIsActive,                 {14 Time Flag}
  868.     SetARisActive,                {15 Set AR flag}
  869.     ClearARisActive,              {16 Clear AR Flag}
  870.  
  871.     uuEvent24,                    {17 Reserved}
  872.     uuEvent23,                    {18 Reserved}
  873.     uuEvent22,                    {19 Reserved}
  874.     uuEvent21,                    {20 Reserved}
  875.     uuEvent20,                    {21 Reserved}
  876.     uuEvent19,                    {22 Reserved}
  877.     uuEvent18,                    {23 Reserved}
  878.     uuEvent17,                    {24 Reserved}
  879.  
  880.     uuEvent16,                    {25 Reserved}
  881.     uuEvent15,                    {26 Reserved}
  882.     uuEvent14,                    {27 Reserved}
  883.     uuEvent13,                    {28 Reserved}
  884.     uuEvent12,                    {29 Reserved}
  885.     uuEvent11,                    {30 Reserved}
  886.     uuEvent10,                    {31 Reserved}
  887.     uuEvent9,                     {32 Reserved}
  888.  
  889.     uuEvent8,                     {33 Reserved}
  890.     uuEvent7,                     {34 Reserved}
  891.     uuEvent6,                     {35 Reserved}
  892.     uuEvent5,                     {36 Reserved}
  893.     uuEvent4,                     {37 Reserved}
  894.     uuEvent3,                     {38 Reserved}
  895.     uuEvent2,                     {39 Reserved}
  896.     uuEvent1                      {40 Reserved}
  897.     );
  898.  
  899.   EventDaysType  = SET OF 0..6;   {Set of event days}
  900.  
  901.   {*************************************************************************}
  902.   {* The Record Structure of the EventFile                                 *}
  903.   {*************************************************************************}
  904.   EventRecordType = RECORD        {Events - EVENTS.DAT}
  905.     EventFlags :                  {Kinds of Events Supported}
  906.       SET OF EventType;           
  907.  
  908.     EventDayOfMonth : BYTE;       {If monthly, the Day of Month}
  909.  
  910.     EventDays : EventDaysType;    {If Daily, the Days Active}
  911.  
  912.     EventStartTime,               {Start Time in Min from Mid.}
  913.     EventFinishTime : WORD;       {Finish Time}
  914.  
  915.     EventDesc : STRING[32];       {Description of the Event}
  916.  
  917.     EventQualMsg,                 {Msg/Path if he qualifies}
  918.     EventNotQualMsg : STRING[64]; {Msg/Path if he doesn't}
  919.  
  920.     EventPreTime : BYTE;          {Min. B4 event to rest. Call}
  921.  
  922.     EventOffHook : BOOLEAN;       {Take phone Offhook ?}
  923.  
  924.     EventLastDate : STRING[8];    {Last Date Executed}
  925.  
  926.     EventErrorLevel : BYTE;       {For Ext Event ErrorLevel}
  927.  
  928.     EventShellPath : STRING[8];   {File for Ext Event Shell}
  929.  
  930.     LoBaud,                       {Low baud rate limit}
  931.     HiBaud : WORD;                {High baud rate limit}
  932.  
  933.     LoSL,                         {Low SL limit}
  934.     HiSL,                         {High SL limit}
  935.     LoDSL,                        {Low DSL limit}
  936.     HiDSL : BYTE;                 {High DSL limit}
  937.  
  938.     ARflagRequired : CHAR;        {AR flag required}
  939.  
  940.     MaxTimeAllowed : WORD;        {Max Time per user this event}
  941.  
  942.     SetARflag,                    {AR Flag to Set}
  943.     ClearARflag : CHAR;           {AR Flag to Clear}
  944.  
  945.     EventUnused :                 {Reserved}
  946.       ARRAY[1..128] OF BYTE;      
  947.   END;
  948.  
  949. CONST
  950.   maxmodemresultcodes = 45;       {Maximum number of modem result codes}
  951.  
  952. TYPE
  953.   modemresulttype = (             {Modem result types}
  954.     resulterror,                  {Command error}
  955.     resultok,                     {Command accepted}
  956.     resultring,                   {Phone ringing}
  957.     resultnocarrier,              {Connect attempt failed}
  958.     resultconnect,                {Connect succcessful}
  959.     resultwaitscreen,             {Go to wait screen}
  960.     resultlocallogon,             {Logcal logon}
  961.     resultshellbatch,             {Shell to batch file}
  962.     resultexiterrorlevel,         {Exit system with error level}
  963.     resultexitsystem,             {Exit system with error level 255}
  964.  
  965.                                   {The following are not supported}
  966.     resultnodialtone,             {Reserved}
  967.     resultringing,                {Reserved}
  968.     resultbusy,                   {Reserved}
  969.     resultnoanswer,               {Reserved}
  970.     resultvoice                   {Reserved}
  971.     );
  972.  
  973.   modemresultset =                {Set to modem results - Used intenally}
  974.     SET OF modemresulttype;
  975.                                   
  976.  
  977.   resultrec = RECORD
  978.     typeofresult :                {Type of result}
  979.       modemresulttype;            
  980.  
  981.     result : STRING[50];          {Test of result}
  982.  
  983.     connectrate,                  {Connect rate modem to modem}
  984.     realrate,                     {Real rate computer to modem}
  985.     controlcode : LONGINT;        {Error level or startup code}
  986.  
  987.     fullduplex,                   {Full duplex operation?}
  988.     errorcorrecting : BOOLEAN;    {Error correcting modem?}
  989.  
  990.     Unused : ARRAY[1..8] OF CHAR; {Reserved}
  991.   END;
  992.  
  993. {
  994. Modem string mapping codes:
  995.  
  996. Char.  Name             Action
  997. -----  ---------------  ------------------------------
  998.  ^     Carat            Control code of next character
  999.  |     Pipe, Split Bar  Carriage return sent
  1000.  `     Accent Mark      1/20th second delay
  1001.  ~     Tilde            1/2 second delay
  1002.  ^-    Carat & Minus    Lower DTR line
  1003.  ^+    Carat & Plus     Raise DTR line
  1004. }
  1005.  
  1006.   modemrec = RECORD               {Modem record - MODEM.DAT}
  1007.     uuunused : BOOLEAN;           {Unused}
  1008.  
  1009.     modemdescription :            {Description on modem}
  1010.       STRING[64];                 
  1011.  
  1012.     characterdelay : BYTE;        {Miliseconds}
  1013.  
  1014.     ctsrts,                       {Hardware flow control active}
  1015.     samering,                     {Reserved}
  1016.     nocollide : BOOLEAN;          {Reserved}
  1017.  
  1018.     numberresults : BYTE;         {Number of modem result codes defined}
  1019.  
  1020.     result :                      {Array of results}
  1021.       ARRAY[1..maxmodemresultcodes] OF
  1022.       resultrec;                  
  1023.  
  1024.     preinitialization,            {Pre-initialization string}
  1025.     initialization,               {Initialization string}
  1026.     answer,                       {Answer string}
  1027.     busy,                         {Busy string}
  1028.     hangupprimary,                {Hangup primary string}
  1029.     hangupsecondary,              {Hangup secondard string}
  1030.     afterhangup,                  {After hangup string}
  1031.     exitsystem,                   {Exit system string}
  1032.     predial,                      {Reserved}
  1033.     dialprefix,                   {Reserved}
  1034.     dialsuffix : STRING[64];      {Reserved}
  1035.  
  1036.     waitbaud : LONGINT;           {Init modem speed}
  1037.  
  1038.     lockedbaud : BOOLEAN;         {Is baud rate locked - Not used by T.A.G.}
  1039.  
  1040.     ecefficiency,                 {Error correcting efficiency}
  1041.     ncefficiency : BYTE;          {Normal connect efficiency}
  1042.  
  1043.     Unused :
  1044.       ARRAY[1..249] OF CHAR;      {Reserved}
  1045.   END;
  1046.  
  1047. CONST
  1048.   MaxSubOps = 10;                 {Maximum number of message section SubOps}
  1049.  
  1050. TYPE
  1051.   NoYesForcedType = (             {Message section type}
  1052.     No,                           {Anonymous messages not allowed}
  1053.     Yes,                          {Anonymous messages allowed}
  1054.     Forced,                       {Messages forced anonymous}
  1055.     AtUnused                      {Reserved}
  1056.     );
  1057.  
  1058.   {*************************************************************************}
  1059.   {* Standard Attributes for Messages                                      *}
  1060.   {*************************************************************************}
  1061.   MessageAttrFlagType = (
  1062.     Msg_Private,                  {1  fPrivate,              RaPrivate}
  1063.     Msg_Crash,                    {2  fCrash,                Crash}
  1064.     Msg_Received,                 {3  fReceived,             Received}
  1065.     Msg_Sent,                     {4  fSent,                 Sent}
  1066.     Msg_FileAttached,             {5  fFileAttached,         FileAttach}
  1067.     Msg_KillSent,                 {6  fKillSent,             KillSent}
  1068.     Msg_Local,                    {7  fLocal,                LocalMessage}
  1069.     Msg_ReturnReceiptRequest,     {8  fReportReceiptRequest, RequestReceipt}
  1070.     Msg_IsReturnReceipt,          {9  fIsReturnReceipt,      ReturnReceipt}
  1071.     Msg_AuditRequest,             {10 fAuditRequest,         AuditRequest}
  1072.  
  1073.     Msg_Fido_InTransit,           {11 fInTransit}
  1074.     Msg_Fido_Orphan,              {12 fOrphan}
  1075.     Msg_Fido_HoldForPickup,       {13 fHoldForPickup}
  1076.     Msg_Fido_UnusedBit10,         {14 fUnusedBit10}
  1077.     Msg_Fido_FileRequest,         {15 fFileRequest}
  1078.     Msg_Fido_FileUpdateRequest,   {16 fFileUpdateRequest}
  1079.  
  1080.     Msg_Ra_Deleted,               {17 Deleted}
  1081.     Msg_Ra_NetmailPendingExport,  {18 NetmailPendingExport}
  1082.     Msg_Ra_NetMailMessage,        {19 NetMailMessage}
  1083.     Msg_Ra_EchomailPendingExport, {20 EchomailPendingExport}
  1084.     Msg_Ra_UnusedMsgBit7,         {21 UnusedMsgBit7}
  1085.     Msg_Ra_UnusedNetBit7,         {22 UnusedNetBit7}
  1086.  
  1087.     Msg_Unused_Attr1,             {23 Reserved}
  1088.     Msg_Unused_Attr2,             {24 Reserved}
  1089.     Msg_Unused_Attr3,             {25 Reserved}
  1090.     Msg_Unused_Attr4,             {26 Reserved}
  1091.     Msg_Unused_Attr5,             {27 Reserved}
  1092.     Msg_Unused_Attr6,             {28 Reserved}
  1093.     Msg_Unused_Attr7,             {29 Reserved}
  1094.     Msg_Unused_Attr8,             {30 Reserved}
  1095.     Msg_Unused_Attr9,             {31 Reserved}
  1096.     Msg_Unused_Attr10             {32 Reserved - 4 Bytes Total}
  1097.   );
  1098.  
  1099.   MessageAttrFlagSet =            {Set of message attributes}
  1100.     Set of MessageAttrFlagType;   
  1101.  
  1102.   MBstyle = (                     {Message section style flags}
  1103.     uumbbstyle,                   {Was For Private Mail Board}
  1104.     LocalStyle,                   {Local Board}
  1105.     EchoStyle,                    {Echomail, Needs Origin}
  1106.     NetmailStyle,                 {Netmail board (Only one I hope!)}
  1107.     GroupStyle                    {For Groupmail Support}
  1108.     );
  1109.  
  1110.   MBtype = (                      {Message section type flags}
  1111.     uumbtype,                     {Was For Netmail Board}
  1112.     FidoFormat,                   {Fido 1.Msg Format}
  1113.     RaFormat);                    {Remote Access Format}
  1114.  
  1115.   MboardType = RECORD             {Message boards - MBOARDS.DAT}
  1116.     Name : STRING[64];            {Name of the Board}
  1117.  
  1118.     Mstyle : MBstyle;             {Local/Echo/Netmail}
  1119.  
  1120.     Mtype : MBtype;               {Message Board Type}
  1121.  
  1122.     RaBoard : BYTE;               {Board Number if RA/QBBS type}
  1123.  
  1124.     Path : STRING[64];            {Directory PathName}
  1125.  
  1126.     OriginLine : STRING[65];      {Origin Line}
  1127.  
  1128.     AccessAR,                     {AR flag Required to Access}
  1129.     PostAR : ArFlagType;          {AR flag required to Post}
  1130.  
  1131.     AccessSL,                     {Security Level Required to Access}
  1132.     PostSL : BYTE;                {Security Level Required to Post}
  1133.  
  1134.     MsgCount,                     {Count of Msgs on the Board}
  1135.     MaxMsgs,                      {Max Number of Messages}
  1136.     uuMaxOld : WORD;              {Max Days for Messages}
  1137.  
  1138.     Password : STRING[16];        {Password Required}
  1139.  
  1140.     Anon : NoYesForcedType;       {Anonymous Type}
  1141.  
  1142.     AllowAnsi : BOOLEAN;          {Should we allow ANSI}
  1143.  
  1144.     AllowHandle :                 {Should we allow handles}
  1145.       NoYesForcedType;            
  1146.  
  1147.     {*********************************************************}
  1148.     {* Message Board SubOpts List  - Up to 10 - User Numbers *}
  1149.     {*********************************************************}
  1150.     SubOps :                      {SubOps - Item 0 = How many}
  1151.       ARRAY[0..MaxSubOps] OF
  1152.       INTEGER;                    
  1153.  
  1154.     EchoTag : STRING[32];         {Echo Tag for Writing ECHOMAIL.BBS}
  1155.  
  1156.     UseOtherAddress: BOOLEAN;     {Use something other than system}
  1157.  
  1158.     OldOtherAddress:              {Unused}
  1159.       ARRAY[1..23] of byte;       
  1160.  
  1161.     MenuNumber : BYTE;            {Default read message number (if 0, use system default}
  1162.  
  1163.     PrePostFile : STRING[8];      {Prepost file name}
  1164.  
  1165.     MinMsgs : BYTE;               {Minimum number of messages}
  1166.  
  1167.     QuoteStart,                   {Override starting quote}
  1168.     QuoteEnd : STRING[70];        {Override ending quote}
  1169.  
  1170.     OldDefaultAtt :               {Unused}
  1171.       ARRAY[1..2] of byte; 
  1172.  
  1173.     GroupNumber : BYTE;           {What group the board belongs}
  1174.  
  1175.     OtherAddress : AddressType;   {The Address to use!}
  1176.  
  1177.     RestrictPrivate:              {Private mail status}
  1178.       NoYesForcedType;            
  1179.  
  1180.     DefaultAttr :                 {Default message flags}
  1181.       MessageAttrFlagSet;         
  1182.  
  1183.     Reserved :                    {Reserved}
  1184.       ARRAY[1..12] OF BYTE;       
  1185.   END;
  1186.  
  1187. TYPE
  1188.   LastOnType =                    {Last Few Callers - LASTON.DAT}
  1189.     Array[1..8] of String[160];   
  1190.  
  1191. Const
  1192.   MaxBits = 1024;                 {Means a 128 Byte BitSet Bits 0 to 1023}
  1193.  
  1194. Type
  1195.   BitSetType =                    {Board Flags - ?ZSCAN.DAT}
  1196.     Array[0..(MaxBits Div 8)-1] of
  1197.     Byte;                         
  1198.  
  1199.  
  1200.   WhoRecType = RECORD             {Who's online - $WHO.DAT}
  1201.     Active : Boolean;
  1202.  
  1203.     Node : Byte;                  {Node number for this record}
  1204.  
  1205.     Available : Boolean;          {Is he available for anything}
  1206.  
  1207.     Uname : String[36];           {Users Name}
  1208.  
  1209.     CityState : String[30];       {City and State}
  1210.  
  1211.     Baud : LongInt;               {Baud Rate}
  1212.  
  1213.     Paging : Byte;                {Paging Node Number}
  1214.  
  1215.     InPrivateChat : Byte;         {Node in private chat with}
  1216.  
  1217.     InGroupChat : Boolean;        {Is he in Group Chat}
  1218.  
  1219.     Desc : String[64];            {Long Description}
  1220.   END;
  1221.  
  1222.   UserOnType100 = RECORD          {USERON.BBS file version 1.00}
  1223.     Name : String[35];            {User name}
  1224.  
  1225.     Line : Byte;                  {Node number}
  1226.  
  1227.     Baud : Word;                  {Connect rate}
  1228.  
  1229.     City : String[25];            {City/State}
  1230.  
  1231.     DoNotDisturb : Boolean;       {Do not disturb}
  1232.  
  1233.     Status : Byte;                {Status}
  1234.   END;
  1235.  
  1236.   UserOnType11x = RECORD          {USERON.BBS file version 1.1x}
  1237.     Name : String[35];            {Real name}
  1238.  
  1239.     Handle : String[35];          {User name}
  1240.  
  1241.     Line : Byte;                  {Node number}
  1242.  
  1243.     Baud : Word;                  {Connect rate}
  1244.  
  1245.     City : String[25];            {City/State}
  1246.  
  1247.     DoNotDisturb : Boolean;       {Do not disturb}
  1248.  
  1249.     Status : Byte;                {Status}
  1250.  
  1251.     Attribute : Byte;             {Attribute}
  1252.   END;
  1253.  
  1254. IMPLEMENTATION
  1255.  
  1256.  
  1257. END.
  1258.